projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
add7ba7
)
(x_create_bitmap_from_data) [MAC_OS]: Don't check return
author
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Tue, 18 Apr 2006 08:10:30 +0000
(08:10 +0000)
committer
YAMAMOTO Mitsuharu
<mituharu@math.s.chiba-u.ac.jp>
Tue, 18 Apr 2006 08:10:30 +0000
(08:10 +0000)
value of xmalloc.
src/image.c
patch
|
blob
|
history
diff --git
a/src/image.c
b/src/image.c
index 91aa11987693a0c2af35dff836f976056cbddc99..10c402be119ed7ec9ff43bfd302a7f86cad59507 100644
(file)
--- a/
src/image.c
+++ b/
src/image.c
@@
-201,7
+201,7
@@
XPutPixel (ximage, x, y, pixel)
}
else
#endif
- if (depth == 1)
+
if (depth == 1)
{
char *base_addr = GetPixBaseAddr (pixmap);
short row_bytes = GetPixRowBytes (pixmap);
@@
-444,8
+444,6
@@
x_create_bitmap_from_data (f, bits, width, height)
id = x_allocate_bitmap_record (f);
#ifdef MAC_OS
dpyinfo->bitmaps[id - 1].bitmap_data = (char *) xmalloc (height * width);
- if (! dpyinfo->bitmaps[id - 1].bitmap_data)
- return -1;
bcopy (bits, dpyinfo->bitmaps[id - 1].bitmap_data, height * width);
#endif /* MAC_OS */